package com.draw.cli.webclient;

import java.net.MalformedURLException;

import javax.xml.ws.Service;
import javax.xml.ws.WebServiceException;

import com.draw.webinterface.GlobalInterface;

public class GlobalClient extends Client {
	private static GlobalInterface globalInterface = null;

	public static GlobalInterface getInstance() throws MalformedURLException,
			WebServiceException {
		if (globalInterface == null || Client.isConfigChanged()) {
			Service service = getService("GlobalService");
			globalInterface = service.getPort(GlobalInterface.class);
		}
		return globalInterface;
	}
}
